<template>
  <div>
    <el-form-item label="网址">
      <el-input
              size="small"
              v-model="data.url"
              placeholder="网址"
      ></el-input>
    </el-form-item>
    <el-form-item label="二维码宽高">
      <el-input
              size="small"
              v-model="data.size"
              placeholder="二维码宽高"
      ></el-input>
    </el-form-item>
    <el-form-item label="显示方式">
      <el-select v-model="data.showType" clearable placeholder="请选择">
        <el-option :value="1" label="默认" />
        <el-option :value="2" label="浮动" />
      </el-select>
    </el-form-item>
    <el-form-item label="偏移量" v-if="data.showType == 2">
      <el-input
              size="small"
              v-model="data.wOffset"
              placeholder="按屏幕宽百分比"
      ></el-input>
    </el-form-item>
    <el-form-item label="提示语言">
      <el-input
              size="small"
              v-model="data.tip"
              placeholder="提示语言"
      ></el-input>
    </el-form-item>
    <el-form-item label="二维码logo">
      <el-input
              size="small"
              v-model="data.logoImg"
              placeholder="二维码logo"
      ></el-input>
      <img :src="data.logoImg" style="width: 100%" />
    </el-form-item>


  </div>
</template>

<script>
export default {
  props: ['data', 'widgetForm'],
  data() {
    return {

    }
  },
  // watch: {
  //   remote(v) {
  //     this.data.remote = !!(v == 1)
  //   }
  // },
}
</script>

<style lang="scss" scoped>
.tab {
  padding: 20px 0;
}
</style>
